<div class="edit">
    <form id="editForm" method="post">
        <div id="win"></div>
        <table class="infobox" width="100%" border="0" cellspacing="5px"
               cellpadding="1px">
            <tr>
                <td><label>编号：</label></td>
                <td><input name="number" data-options="editable:false" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.number)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td width="23%"><label>名称：</label></td>
                <td width="77%"><input name="name" type="text" style="width:200px;" value="${(product.name)!''}"
                                       class="easyui-validatebox" autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>类目：</label></td>
                <td><input name="catalog" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.catalog)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>分类：</label></td>
                <td>
                    <#--<input name="category" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.category)!''}"-->
                           <#--autocomplete="off"/>-->
                        <select id="category" name="category" style="width:156px;"/>
                </td>
            </tr>

            <tr>
                <td><label>出品人：</label></td>
                <td><input name="producer" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.producer)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>价格：</label></td>
                <td><input name="price" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.price)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>数量：</label></td>
                <td><input name="count" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.count)!''}"
                           autocomplete="off"/></td>
            </tr>
            <tr>
                <td><label>存放位置：</label></td>
                <td><input name="saveLocation" type="text" style="width:200px;" class="easyui-validatebox" value="${(product.saveLocation)!''}"
                           autocomplete="off"/></td>
            </tr>
            
        </table>
        <input hidden type="text" name="id" value="${(product.id)!''}">
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $("#category").combotree({
            url:'/category/getAllData',
            editable:false,
            onLoadSuccess:function (node,data) {
                $("#category").combotree('setValue','${(product.category)!''}')
            },
            loadFilter: function(rows){
                return convertTree(rows);
            }
        });
    })
    
</script>